package io;

import java.io.File;
import java.io.FileInputStream;

public class FISDemo {
    public static void main(String[] args) throws Exception {
        File file = new File("fos.txt");
        FileInputStream fis = new FileInputStream(file);

        int read = fis.read();
        System.out.println(read);
        read = fis.read();
        System.out.println(read);
        read = fis.read();
        System.out.println(read);
//        int read1 = fis.read();
//        System.out.println(read1);
//        int read2 = fis.read();
//        System.out.println(read2); //没有数据的但是仍然进行读取操作的话会输出-1


        fis.close();


    }
}
